package com.SpringMVC.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.SpringMVC.dao.ITestDao;
import com.SpringMVC.model.Test;
import com.SpringMVC.service.ITestService;


@Service("testServiceImpl")
public class TestServiceImpl implements ITestService {

	private ITestDao testDao;
	
	
	public ITestDao getTest() {
		return testDao;
	}

	@Autowired
	public void setTest(ITestDao testDao) {
		this.testDao = testDao;
	}


	public Test getUserName(int id) {
		
		return testDao.selectByPrimaryKey(id);
	}

}
